#ifndef HWTIMER_CONFIG_H
#define HWTIMER_CONFIG_H

#include "board_config.h"


#ifndef HW_TIMER_LIMIT_DEFINE_DFT
#define HW_TIMER_LIMIT_DEFINE_DFT                   \
{                                                   \
    .maxfreq = 100000000,                           \
    .minfreq = 1000000,                             \
    .maxcnt = 0xffffffff,                           \
    .cntmode = 0,                                   \
}
#endif

#if defined (BOARD_CFG_TIMER1)
#ifndef TIMER1_CFG
#define TIMER1_CFG                                  \
{                                                   \
    .time_device = RT_NULL,                         \
    .timer_regbase = CPUTIMER1_BASE,                \
    .intr_type = INT_TIMER1,                        \
    .name = "TIMER1",                               \
}
#endif

#ifndef HW_TIMER_LIMIT_DEFINE
#define HW_TIMER_LIMIT_DEFINE                       \
{                                                   \
    .maxfreq = 100000000,                           \
    .minfreq = 1000000,                             \
    .maxcnt = 0xffffffff,                           \
    .cntmode = 0,                                   \
}
#endif
#endif

#if defined (BOARD_CFG_TIMER2)
#ifndef TIMER2_CFG
#define TIMER2_CFG                                  \
{                                                   \
    .time_device = RT_NULL,                         \
    .timer_regbase = CPUTIMER2_BASE,                \
    .intr_type = INT_TIMER2,                        \
    .name = "TIMER2",                               \
}
#endif

#ifndef HW_TIMER_LIMIT_DEFINE
#define HW_TIMER_LIMIT_DEFINE                       \
{                                                   \
    .maxfreq = 100000000,                           \
    .minfreq = 1000000,                             \
    .maxcnt = 0xffffffff,                           \
    .cntmode = 0,                                   \
}
#endif
#endif

#endif
